package io.adrainty.bolee.security.configuration;

import io.adrainty.bolee.security.models.properties.SecurityProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * <p>SecurityConfig</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description SecurityConfig
 * @since 2025/8/7 11:53:13
 */

@Configuration
@EnableConfigurationProperties(SecurityProperties.class)
public class SecurityConfig {

    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }

}
